package Test7;

public class Car extends Vehicle{
        private int loader;

    public Car() {
        }
    public Car(int wheels, double weight, int loader) {
            super(wheels, weight);
            this.loader = loader;
        }

        public int getLoader() {
            return loader;
        }
        public void setLoader(int loader) {
            this.loader = loader;
        }

        public void show(){
            super.show();
            System.out.print(" 载人数:"+this.getLoader());
        }
}
